package popcorn.ticket.entity;

import java.io.Serializable;

public class Members implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -2315814137132250339L;

	private Integer memberid;

    private Integer userid;
    private Users users;

    private Integer integral;

    private Integer gradeid;
    private Grades grades;
    
    /**
	 * @return the userid
	 */
	public Integer getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	/**
	 * @return the gradeid
	 */
	public Integer getGradeid() {
		return gradeid;
	}

	/**
	 * @param gradeid the gradeid to set
	 */
	public void setGradeid(Integer gradeid) {
		this.gradeid = gradeid;
	}

//	@Override
//	public String toString() {
//		return "Members [memberid=" + memberid + ", username=" + users.getUsername() + ", integral=" + integral + ", gradename=" + grades.getGradename()
//				+ "]";
//	}

	public Integer getMemberid() {
        return memberid;
    }

    @Override
	public String toString() {
		return "Members [memberid=" + memberid + ", userid=" + userid + ", users=" + users + ", integral=" + integral
				+ ", gradeid=" + gradeid + ", grades=" + grades + "]";
	}

	public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

//    public Integer getUserid() {
//        return userid;
//    }
//
//    public void setUserid(Integer userid) {
//        this.userid = userid;
//    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

	/**
	 * @return the users
	 */
	public Users getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(Users users) {
		this.users = users;
	}

	/**
	 * @return the grades
	 */
	public Grades getGrades() {
		return grades;
	}

	/**
	 * @param grades the grades to set
	 */
	public void setGrades(Grades grades) {
		this.grades = grades;
	}

//    public Integer getGradeid() {
//        return gradeid;
//    }
//
//    public void setGradeid(Integer gradeid) {
//        this.gradeid = gradeid;
//    }
    
    
}